<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="minimal-ui,width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>峰购趣闻</title>
    <link href="__PUBLIC__/wap/css/rest.css"  rel="stylesheet">
    <link href="__PUBLIC__/wap/css/user.css"  rel="stylesheet">
</head>
<body id="body">


  
    <input type="button" name="button" value="分享" onclick="activity_share();"/>

   <input type="hidden" name="article_id" data="1" value="1"/>

     <!--end top-->
   <include file="Public/footer" />
<include file="Public/wap_javascript"/>
<script type="text/javascript">
    var binding_is_check = 0;// 重复再次弹出 1是 0否
    var binding_page ='tweet_detail';// //当前页面名称 不可重复
</script>
<!--绑定-->
<include file="Public/binding_phone"/>
<!--绑定-->


<script type="text/javascript" >
    //分享量计次
    function activity_share(){
        var article_id=$('input[name="article_id"]').val();
        $.ajax({
        url: "{:U('wap/activity/set_activity_share')}",
        type: 'post',
        data: {article_id:article_id},
        dataType: 'json',
        success: function (data) {
            //console.log(data);
            if (data.status=='1') {
               window.location.href="{:U('wap/activity/index',array('article_id'=>1))}";//; 
            }else{
              
            }
        }
    });
    }
</script>


</body>
</html>